package bigDecimal;

import java.math.BigDecimal;
import java.text.DecimalFormat;

/**
 * @author liuchaoqun
 * @date 2022/8/2
 * @Description
 */
public class Main {

    public static void main(String[] args) {
        BigDecimal bigDecimal = new BigDecimal(123456.123456);
        DecimalFormat df = new DecimalFormat("#,##0.00");
        System.out.println(df.format(bigDecimal));
    }
}
